package com.jiawa.train.business.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 确认订单
 * </p>
 *
 * @author hrz
 * @since 2025-09-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("confirm_order")
@ApiModel(value="ConfirmOrder对象", description="确认订单")
public class ConfirmOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "会员id")
    private Long memberId;

    @ApiModelProperty(value = "日期")
    @TableField("`date`")
    private Date date;

    @ApiModelProperty(value = "车次编号")
    private String trainCode;

    @ApiModelProperty(value = "出发站")
    @TableField("`start`")
    private String start;

    @ApiModelProperty(value = "到达站")
    @TableField("`end`")
    private String end;

    @ApiModelProperty(value = "余票ID")
    private Long dailyTrainTicketId;

    @ApiModelProperty(value = "车票")
    private String tickets;

    @ApiModelProperty(value = "订单状态|枚举[ConfirmOrderStatusEnum]")
    private String status;

    @ApiModelProperty(value = "新增时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;


}
